package com.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableDiscoveryClient // 开启组册中心
@EnableCircuitBreaker   // 开启熔断器
@EnableFeignClients
public class UserApplicationWeb {

//	@Bean
//	public RestTemplate restTemplate(){
//		return new RestTemplate();  // rest template是一种对 http 请求对封装模版 对http进行操作 只需要 url 参数 javabean
//
//	}

	public static void main(String[] args) {
		SpringApplication.run(UserApplicationWeb.class, args);
	}

}
